#include "CMemory.h"

CMemory* CMemory::m_pInstance = NULL;

void* CMemory::allocMemory(int nMemCnt, bool bMemset)
{
	void* tmpMem = (void*)new char[nMemCnt];
	if (bMemset)
	{
		memset(tmpMem, 0, nMemCnt);
	}
	return tmpMem;
}

void CMemory::freeMemory(void* pointer)
{
	delete[]((char*)pointer);
}
